<?php
class Sys_Log extends Eloquent
{
    public static function write($user, $content)
    {
        static::create(compact('user', 'content'));
    }
}